libxl: refactor migrate_domain and generalize migrate_receive
authorShriram Rajagopalan <rshriram@cs.ubc.ca>
Fri, 18 May 2012 10:00:42 +0000 (11:00 +0100)
committerShriram Rajagopalan <rshriram@cs.ubc.ca>
Fri, 18 May 2012 10:00:42 +0000 (11:00 +0100)
commit026940c8b0760b6816fd2398608a64d7f0b8cd7d
tree6fe7d115673160d8eed16d79b53f5036c0d0c8df
parentedb3f71c59a5657ce10c6e7bdf3de82371ffa47b
libxl: refactor migrate_domain and generalize migrate_receive

Refactor some tasks like establishing the migration channel,
initial migration protocol exchange into separate functions,
to facilitate re-use, when remus support is introduced. Also,
make migrate_receive generic (instead of resorting to stdin and
stdout as the file descriptors for communication).

Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c